<template>
  <div class="login_bgc">
    <!-- 头部 -->
    <div class="header_top">
      <span><img src="../../assets/images/logo.png" alt="" /></span>
      <span><img src="../../assets/images/字体.png" alt="" /></span>
    </div>
    <img class="img_center" src="../../assets/images/图.png" alt="" />
    <!-- 表单 -->
    <div class="Login_form">
      <div class="form_top">用户登陆</div>
      <el-form ref="loginRef" :rules="rules" :model="loginForm">
        <el-form-item prop="username">
          <el-input
            v-model="loginForm.username"
            placeholder="请输入用户名"
            prefix-icon="el-icon-user"
          ></el-input>
        </el-form-item>
        <el-form-item prop="password">
          <el-input
            v-model="loginForm.password"
            placeholder="请输入您的密码"
            prefix-icon="el-icon-lock"
          ></el-input>
        </el-form-item>
        <el-form-item prop="verifyCode">
          <el-input
            v-model="loginForm.verifyCode"
            placeholder="请输入验证码"
            prefix-icon="el-icon-circle-check"
          ></el-input>
        </el-form-item>
        <div class="checkbox">
          <el-checkbox v-model="checked" :fill="'#23D0D2'"></el-checkbox
          ><span>
            忘记密码
            <el-link
              icon="el-icon-question"
              style="color: #23d0d2"
              :underline="false"
            ></el-link
          ></span>
        </div>
        <el-button @click="handle()"> 登陆 </el-button>
      </el-form>
    </div>
    <!-- 底部 -->
    <div class="footer">
      <span class="fontBox1"
        >联合提供<br />中华人民共和国工业和信息化部 |
        中华人民共和国国家卫生健康委员会 | 国家药品监督管理局 |
        中国工业互联网研究院</span
      >
      <span class="fontBox2"
        ><span><img src="../../assets/images/座机.png" alt="" /></span>
        010-87901190 <br />
        版权信息 京ICP283737号 copyright©2021</span
      >
    </div>
  </div>
</template>
<script>
import "./login_input.css";
export default {
  data() {
    return {
      loginForm: {
        username: "",
        password: "",
        verifyCode: "",
      },
      rules: {
        username: [
          { required: true, message: "请输入您的账号", trigger: "blur" },
          { min: 3, max: 5, message: "长度在 3 到 5 个字符", trigger: "blur" },
        ],
        password: [
          { required: true, message: "请输入密码", trigger: "blur" },
          {
            min: 6,
            max: 10,
            message: "长度在 6 到 10 个字符",
            trigger: "blur",
          },
        ],
        verifyCode: [
          { required: true, message: "请输入验证码", trigger: "blur" },
        ],
      },
    };
  },
  methods: {
    handle() {
      router.push("/home");
    },
  },
};
</script>
<style lang="scss" scoped>
.login_bgc {
  //   padding: 0;
  position: relative;
  height: 100%;
  width: 100%;
  background-image: url(../../assets/images/背景.png);
  background-repeat: no-repeat;
  background-size: cover;
  // background-position: left top;
  .header_top {
    padding: 49px 0 0 107px;
    span:first-child {
      margin-right: 21px;
    }
  }
  .img_center {
    transform: scale(0.8);
    position: absolute;
    top: 10px;
    left: 150px;
  }
  .Login_form {
    width: 380px;
    height: 400px;
    background-color: #fff;
    position: absolute;
    top: 100px;
    right: 120px;
    .form_top {
      padding: 35px 0 41px;
      text-align: center;
      color: #23cdc2;
      font-size: 32px;
    }
    .el-form {
      padding: 0 40px 0 42px;
      .checkbox {
        margin-top: -8px;
        vertical-align: sub;
        span {
          margin-left: 12px;
          font-size: 12px;
          text-indent: 1em;
        }
      }
      .el-form-item {
        // width: 400px;
        // height: 64px;
      }
      .el-button {
        width: 300px;
        height: 40px;
        background: linear-gradient(90deg, #53e5d4, #1fcbc0);
        box-shadow: 0px 5px 6px 0px rgba(31, 157, 153, 0.26);
        border-radius: 4px;
        margin-top: 18px;
      }
    }
  }
  .footer {
    // background-color: skyblue;
    background-color: #fff;
    width: 100%;
    height: 160px;
    position: absolute;
    bottom: 0%;
    color: #666666;
    line-height: 31px;
    font-size: 14px;
    .fontBox1 {
      position: absolute;
      left: 168px;
      bottom: 62px;
    }
    .fontBox2 {
      position: absolute;
      right: 251px;
      bottom: 62px;
    }
  }
}
</style>
